<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增车辆信息" bodyClass="white-bg" libs=["prism","bootstrapSelect","ueditor"]/>
<div class="wrapper wrapper-content ibox-content">
    <@form.form id="form-carinfo-add"  class="form-horizontal">
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "合同价格"/>：
       </label>
        <div class="col-sm-8"><input name="contractPrice" value="${bpmCrmCarinfo.contractPrice?default("")}" class="form-control" type="text" required>
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "是否含税"/>：</label>
        <div class="col-sm-8">
              <@form.radio name="orderIsTax" dictType="sys_crm_isOrNo" value="${bpmCrmCarinfo.orderIsTax?default('')}" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "是否包含运输费用"/>：</label>
        <div class="col-sm-8">
              <@form.radio name="orderIsTransport" dictType="sys_crm_isOrNo" value="${bpmCrmCarinfo.orderIsTransport?default('')}" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "是否保修"/>：</label>
        <div class="col-sm-8">
              <@form.radio name="orderIsGuarantee" dictType="sys_crm_isOrNo" value="${bpmCrmCarinfo.orderIsGuarantee?default('')}" />
        </div>
    </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "其他"/>：
       </label>
        <div class="col-sm-8"><input name="orderOtherItem" value="${bpmCrmCarinfo.orderOtherItem?default("")}" class="form-control" type="text" required>
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "车辆识别号"/>：
       </label>
        <div class="col-sm-8"><input name="carVin" value="${bpmCrmCarinfo.carVin?default("")}" class="form-control" type="text" required>
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "车型"/>：
       </label>
        <div class="col-sm-8"><input name="carVehicle" value="${bpmCrmCarinfo.carVehicle?default("")}" class="form-control" type="text" required>
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "里程"/>：
       </label>
        <div class="col-sm-8"><input name="carMileage" value="${bpmCrmCarinfo.carMileage?default("")}" class="form-control" type="text" required>
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "变速箱"/>：</label>
        <div class="col-sm-8">
              <@form.radio name="carTranmission" dictType="sys_crm_cartranmission" value="${bpmCrmCarinfo.carTranmission?default('')}" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "驱动形式"/>：</label>
        <div class="col-sm-8">
              <@form.radio name="carDrivertrain" dictType="sys_crm_cardrivertrain" value="${bpmCrmCarinfo.carDrivertrain?default('')}" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "车况"/>：</label>
        <div class="col-sm-8">
            <@form.select name="carStatus" dictType="sys_crm_carstatus" value="${bpmCrmCarinfo.carStatus?default('')}" />
        </div>
    </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "最高价"/>：
       </label>
        <div class="col-sm-8"><input name="channelHighestPrice" value="${bpmCrmCarinfo.channelHighestPrice?default("")}" class="form-control" type="text" required>
        </div>
     </div>
</@form.form>
</div>
<@footer>
    <script type="text/javascript">
        var prefix = baseURL + "bpm/carinfo"
        $("#form-carinfo-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            var newString= $('#form-carinfo-add').serialize()+"&carStatus=0"
            if (opt.validate.form()) {
                opt.operate.save(prefix + "/add",newString);
            }
        }
</script>
</@footer>
</@pageTheme>